/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.wooxes.client;

import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 *
 * @author alladanosa
 */
public class PopupLoading extends TransparentPopup {
    
    PopupLoading(){
        super();
        VerticalPanel vp = new VerticalPanel();
        vp.setStyleName("code-PopupLoading");
        
        Image image_loading = new Image("images/loading.gif");
        Label text_loading = new Label("Carregant...");
        
        vp.add(image_loading);
        vp.add(text_loading);
        
        // Es centren els 2 Widgets
        vp.setCellHorizontalAlignment(image_loading, VerticalPanel.ALIGN_CENTER);
        vp.setCellHorizontalAlignment(text_loading, VerticalPanel.ALIGN_CENTER);
        setWidget(vp);
        //center();
    }

}
